//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-03A
TN_Widget.CreateTable([['Jack & Jack','The Crocodile','Seattle, WA','Wednesday','5/1/2024','8:00 PM','6119333','Jack---Jack-5-1-2024'],['Julia Holter','The Crocodile','Seattle, WA','Monday','5/6/2024','8:00 PM','6205467','Julia-Holter-5-6-2024'],['Smash Into Pieces','The Crocodile','Seattle, WA','Wednesday','5/8/2024','8:00 PM','6154191','Smash-Into-Pieces-5-8-2024'],['School of Rock Seattle - Season Preview','The Crocodile','Seattle, WA','Sunday','5/12/2024','1:00 PM','6406856','School-of-Rock-Seattle---Season-Preview-5-12-2024'],['Donny Benet','The Crocodile','Seattle, WA','Tuesday','5/14/2024','8:00 PM','6068534','Donny-Benet-5-14-2024'],['Malcolm Todd','The Crocodile','Seattle, WA','Wednesday','5/15/2024','8:30 PM','6283571','Malcolm-Todd-5-15-2024'],['Fruit Bats','The Crocodile','Seattle, WA','Friday','5/17/2024','11:00 PM','6227343','Fruit-Bats-5-17-2024'],['Fruit Bats','The Crocodile','Seattle, WA','Saturday','5/18/2024','6:00 PM','6227344','Fruit-Bats-5-18-2024'],['Glass Beams','The Crocodile','Seattle, WA','Tuesday','5/21/2024','8:30 PM','6291058','Glass-Beams-5-21-2024'],['Melt-Banana','The Crocodile','Seattle, WA','Thursday','5/23/2024','8:00 PM','6262099','Melt-Banana-5-23-2024'],['We Three - Band','The Crocodile','Seattle, WA','Friday','5/24/2024','6:30 PM','6297158','We-Three---Band-5-24-2024'],['Hanabie','The Crocodile','Seattle, WA','Wednesday','5/29/2024','7:00 PM','6264920','Hanabie-5-29-2024'],['La Luz','The Crocodile','Seattle, WA','Thursday','5/30/2024','8:00 PM','6304571','La-Luz-5-30-2024'],['Gatecreeper','The Crocodile','Seattle, WA','Sunday','6/2/2024','7:00 PM','6343922','Gatecreeper-6-2-2024'],['Spite & Bodysnatcher','The Crocodile','Seattle, WA','Tuesday','6/4/2024','8:00 PM','6244266','Spite---Bodysnatcher-6-4-2024'],['Ionnalee','The Crocodile','Seattle, WA','Thursday','6/6/2024','TBD','6335434','Ionnalee-6-6-2024'],['Death To All','The Crocodile','Seattle, WA','Saturday','6/15/2024','6:00 PM','6257273','Death-To-All-6-15-2024'],['Death To All','The Crocodile','Seattle, WA','Sunday','6/16/2024','8:00 PM','6257274','Death-To-All-6-16-2024'],['Allie X','The Crocodile','Seattle, WA','Wednesday','6/19/2024','8:00 PM','6284802','Allie-X-6-19-2024'],['Los Campesinos!','The Crocodile','Seattle, WA','Monday','6/24/2024','8:00 PM','6080688','Los-Campesinos--6-24-2024'],['Cults','The Crocodile','Seattle, WA','Monday','8/12/2024','8:00 PM','6400542','Cults-8-12-2024'],['Boy and Bear','The Crocodile','Seattle, WA','Tuesday','9/3/2024','7:00 PM','6384060','Boy-and-Bear-9-3-2024'],['Nerd Halen','The Crocodile','Seattle, WA','Thursday','9/5/2024','8:00 PM','6398066','Nerd-Halen-9-5-2024'],['Zheani','The Crocodile','Seattle, WA','Thursday','9/12/2024','8:00 PM','6302907','Zheani-9-12-2024'],['Slift','The Crocodile','Seattle, WA','Sunday','10/13/2024','8:00 PM','6357277','Slift-10-13-2024'],['Witchz','The Crocodile','Seattle, WA','Thursday','10/31/2024','8:00 PM','6274830','Witchz-10-31-2024'],['Post Animal','The Crocodile','Seattle, WA','Wednesday','4/9/2070','TBD','4352352','Post-Animal-4-9-2070']],'Crocodile Rock','http://www.ticketnetwork.com/ticket/Crocodile-Rock-events.aspx');